package com.yongqi.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yongqi.mapper.NewsMapper;
import com.yongqi.model.News;

@Service
public class NewsService {
	@Autowired
	NewsMapper newsMapper;
	/*
	 * 获取新闻
	 */
	public List<News> queryNews(Map<String, String> map){
		return newsMapper.queryNews(map);
	}
}
